package com.three.sb_group3.controller;

import com.three.sb_group3.entity.Users;
import com.three.sb_group3.service.UsersService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


@RestController
@RequestMapping("Users")
public class UsersController  {
    @Resource
    private UsersService usersService;
    //查看个人信息 刘天如
    @RequestMapping("list")
    public List<Users> usersList() {
        List<Users> result = usersService.userList();
        return result;
    }
    //用户注册,编辑 丁梦瑶
    @RequestMapping("edit1")
    public List<Users> usersEdit1() {
        List<Users>    result = usersService.userEdit1();
        return result;
    }
    //用户管理：删除用户信息 李景鑫 李博文
    @RequestMapping("delete")
    public List<Users> usersDelete() {
        List<Users>    result = usersService.userDelete();
        return result;
    }
}






